package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BusinessCardMapper;
import com.ruoyi.system.domain.BusinessCard;
import com.ruoyi.system.service.IBusinessCardService;
import com.ruoyi.common.core.text.Convert;

/**
 * 电子名片信息表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-13
 */
@Service
public class BusinessCardServiceImpl implements IBusinessCardService 
{
    @Autowired
    private BusinessCardMapper businessCardMapper;

    /**
     * 查询电子名片信息表
     * 
     * @param bcId 电子名片信息表主键
     * @return 电子名片信息表
     */
    @Override
    public BusinessCard selectBusinessCardByBcId(Long bcId)
    {
        return businessCardMapper.selectBusinessCardByBcId(bcId);
    }

    /**
     * 查询电子名片信息表列表
     * 
     * @param businessCard 电子名片信息表
     * @return 电子名片信息表
     */
    @Override
    public List<BusinessCard> selectBusinessCardList(BusinessCard businessCard)
    {
        return businessCardMapper.selectBusinessCardList(businessCard);
    }

    /**
     * 新增电子名片信息表
     * 
     * @param businessCard 电子名片信息表
     * @return 结果
     */
    @Override
    public int insertBusinessCard(BusinessCard businessCard)
    {
        return businessCardMapper.insertBusinessCard(businessCard);
    }

    /**
     * 修改电子名片信息表
     * 
     * @param businessCard 电子名片信息表
     * @return 结果
     */
    @Override
    public int updateBusinessCard(BusinessCard businessCard)
    {
        return businessCardMapper.updateBusinessCard(businessCard);
    }

    /**
     * 批量删除电子名片信息表
     * 
     * @param bcIds 需要删除的电子名片信息表主键
     * @return 结果
     */
    @Override
    public int deleteBusinessCardByBcIds(String bcIds)
    {
        return businessCardMapper.deleteBusinessCardByBcIds(Convert.toStrArray(bcIds));
    }

    /**
     * 删除电子名片信息表信息
     * 
     * @param bcId 电子名片信息表主键
     * @return 结果
     */
    @Override
    public int deleteBusinessCardByBcId(Long bcId)
    {
        return businessCardMapper.deleteBusinessCardByBcId(bcId);
    }
}
